inherited FuCadastroContaContabilNovo: TFuCadastroContaContabilNovo
  Left = 269
  Top = 99
  Caption = 'Plano de Contas'
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 16
  inherited pcCadastro: TPageControl
    ActivePage = TsPesquisa
    inherited TsPesquisa: TTabSheet
      inherited pnPesquisa: TPanel
        inherited Pmostrando_excluidos: TPanel
          inherited Situacao_filtro_excluido: TLabel
            Width = 141
          end
        end
        object btn1: TButton
          Left = 144
          Top = 16
          Width = 75
          Height = 25
          Caption = 'btn1'
          TabOrder = 3
          Visible = False
          OnClick = btn1Click
        end
        object BtnEmissao: TBitBtn
          Left = 5
          Top = 5
          Width = 100
          Height = 25
          Caption = 'Relat'#243'rio'
          TabOrder = 4
          OnClick = BtnEmissaoClick
          Glyph.Data = {
            36010000424D3601000000000000760000002800000012000000100000000100
            040000000000C000000000000000000000001000000000000000000000000000
            8000008000000080800080000000800080008080000080808000C0C0C0000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF008F0000000000
            0000080000008F7777777777777708000000F77777777777777770000000F888
            88888888888880000000F8A288888808080880000000F88FFFFFFFFFFFFF8000
            0000FFF8888888888888FF000000888FFFFFFFFFFFF788000000888F88888888
            88F788000000888FFFFFFFFFFFF788000000888F8888888888F788000000888F
            FFFFFFFFFFF788000000888F8888888888F788000000888FFFFFFFFFF7778800
            0000888FFFFFFFFFF7F888000000888FFFFFFFFFF78888000000}
        end
      end
      inherited dbgPesquisaPadra: TDBGrid
        Columns = <
          item
            Expanded = False
            FieldName = 'CCON_CODIGO'
            Title.Alignment = taCenter
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'CCON_COGIGOCONTABIL'
            Width = 132
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'CCON_DESCRICAO'
            Width = 446
            Visible = True
          end>
      end
    end
    inherited TsCadastro: TTabSheet
      inherited panel1: TPanel
        object Label1: TLabel [0]
          Left = 16
          Top = 48
          Width = 91
          Height = 16
          Caption = 'C'#243'digo Cont'#225'bil'
        end
        object Label2: TLabel [1]
          Left = 16
          Top = 96
          Width = 58
          Height = 16
          Caption = 'Descri'#231#227'o'
        end
        object Label3: TLabel [2]
          Left = 16
          Top = 144
          Width = 137
          Height = 16
          Caption = 'Hist'#243'rico Padr'#227'o D'#233'bito'
        end
        object Label4: TLabel [3]
          Left = 16
          Top = 192
          Width = 141
          Height = 16
          Caption = 'Hist'#243'rico Padr'#227'o Cr'#233'dito'
        end
        inherited panel2: TPanel
          TabOrder = 0
          inherited DBNavigator1: TDBNavigator
            Hints.Strings = ()
          end
        end
        inherited panel3: TPanel
          TabOrder = 4
        end
        object edCodigoContabil: TDBEdit
          Left = 16
          Top = 64
          Width = 185
          Height = 24
          DataField = 'CCON_COGIGOCONTABIL'
          DataSource = dsCadastro
          MaxLength = 14
          TabOrder = 1
        end
        object edDescricao: TDBEdit
          Left = 16
          Top = 112
          Width = 400
          Height = 24
          DataField = 'CCON_DESCRICAO'
          DataSource = dsCadastro
          TabOrder = 2
        end
        object rgNaturezaConta: TDBRadioGroup
          Left = 424
          Top = 99
          Width = 201
          Height = 44
          Caption = ' Natureza da Conta '
          Columns = 2
          DataField = 'CCON_NATUREZA_CONTA'
          DataSource = dsCadastro
          Items.Strings = (
            'Devedora'
            'Credora')
          TabOrder = 3
          TabStop = True
          Values.Strings = (
            'D'
            'C')
          OnEnter = rgNaturezaContaEnter
          OnExit = rgNaturezaContaExit
        end
        object rgAproCC: TDBRadioGroup
          Left = 632
          Top = 99
          Width = 201
          Height = 44
          Caption = ' Apropriar por Centro de Custo '
          Columns = 2
          DataField = 'CCON_APROP_CC'
          DataSource = dsCadastro
          Items.Strings = (
            'Sim'
            'N'#227'o')
          TabOrder = 5
          TabStop = True
          Values.Strings = (
            'S'
            'N')
        end
        object GroupBox1: TGroupBox
          Left = 16
          Top = 240
          Width = 817
          Height = 177
          Caption = '  Informa'#231#245'es Pertinentes ao SPED Cont'#225'bil '
          TabOrder = 8
          object Label5: TLabel
            Left = 8
            Top = 120
            Width = 153
            Height = 16
            Caption = 'Conta Cont'#225'bil Referencial'
          end
          object rgNatureza: TDBRadioGroup
            Left = 8
            Top = 17
            Width = 793
            Height = 49
            Caption = ' Natureza '
            Columns = 6
            DataField = 'CCON_NATUREZA'
            DataSource = dsCadastro
            Items.Strings = (
              'Ativo'
              'Passivo'
              'Patrim'#244'nio L'#237'quido'
              'Resultado'
              'Compensa'#231#227'o'
              'Outros')
            TabOrder = 0
            Values.Strings = (
              '01'
              '02'
              '03'
              '04'
              '05'
              '09')
          end
          object rgIndBalancete: TDBRadioGroup
            Left = 8
            Top = 65
            Width = 449
            Height = 49
            Caption = ' Indica'#231#227'o Balancete '
            Columns = 4
            DataField = 'CCON_IND_BALANCETE'
            DataSource = dsCadastro
            Items.Strings = (
              'Ativo'
              'Passivo'
              'Receita'
              'Despesa')
            TabOrder = 1
            Values.Strings = (
              'A'
              'P'
              'R'
              'D')
          end
          object dblContaReferencial: TDBLookupComboBox
            Left = 8
            Top = 136
            Width = 793
            Height = 24
            DataField = 'CCON_CONTA_REFER'
            DataSource = dsCadastro
            KeyField = 'CCOR_CODIGO'
            ListField = 'CCOR_DESCRICAO'
            ListSource = dsContaReferencial
            TabOrder = 3
            OnKeyDown = dblContaReferencialKeyDown
          end
          object gbLucroPrejuiso: TGroupBox
            Left = 464
            Top = 65
            Width = 337
            Height = 50
            Caption = ' Conta Lucro/Preju'#237'so '
            TabOrder = 2
            object cbLucro: TCheckBox
              Left = 16
              Top = 24
              Width = 97
              Height = 17
              Caption = 'Lucro'
              TabOrder = 0
            end
            object cbPrejuiso: TCheckBox
              Left = 120
              Top = 24
              Width = 97
              Height = 17
              Caption = 'Preju'#237'so'
              TabOrder = 1
            end
          end
        end
        object dblkcbbCCON_HISTPADRAO_DEB: TDBLookupComboBox
          Left = 16
          Top = 160
          Width = 400
          Height = 24
          DataField = 'CCON_HISTPADRAO_DEB'
          DataSource = dsCadastro
          KeyField = 'HIST_CODIGO'
          ListField = 'HIST_DESCRICAO'
          ListSource = dsHistoricoDebito
          TabOrder = 6
        end
        object dblkcbbCCON_HISTPADRAO_CRE: TDBLookupComboBox
          Left = 16
          Top = 208
          Width = 400
          Height = 24
          DataField = 'CCON_HISTPADRAO_CRE'
          DataSource = dsCadastro
          KeyField = 'HIST_CODIGO'
          ListField = 'HIST_DESCRICAO'
          ListSource = dsHistoricoDebito
          TabOrder = 7
          OnExit = dblkcbbCCON_HISTPADRAO_CREExit
        end
      end
    end
  end
  inherited dsCadastro: TDataSource
    Top = 328
  end
  inherited QCadastro: TQuery
    SQL.Strings = (
      'SELECT'
      '  CONTA_CONTABIL.CCON_CODIGO,'
      '  CONTA_CONTABIL.CCON_COGIGOCONTABIL,'
      '  CONTA_CONTABIL.CCON_DESCRICAO,'
      '  CONTA_CONTABIL.CCON_NATUREZA_CONTA,'
      '  CONTA_CONTABIL.CCON_APROP_CC,'
      '  CONTA_CONTABIL.CCON_HISTPADRAO_DEB,'
      '  CONTA_CONTABIL.CCON_HISTPADRAO_CRE,'
      '  CONTA_CONTABIL.CCON_NATUREZA,'
      '  CONTA_CONTABIL.CCON_IND_BALANCETE,'
      '  CONTA_CONTABIL.CCON_CONTA_REFER,'
      
        '  (SELECT CCOR_CODIGO_CONTA FROM CONTA_CONTABIL_REFERENCIAL WHER' +
        'E ccc_codigo = CONTA_CONTABIL.CCON_CONTA_REFER) AS CCOR_CODIGO_C' +
        'ONTA_REFER,'
      '  CONTA_CONTABIL.CCON_LUCRO_VS_PREJU,'
      '  CONTA_CONTABIL.CCON_CODCONTA_MAE,'
      '  CONTA_CONTABIL.USUARIO_CADASTRO,'
      '  CONTA_CONTABIL.USUARIO_AUTERACAO,'
      '  CONTA_CONTABIL.USUARIO_EXCLUSAO,'
      '  CONTA_CONTABIL.DATA_CADASTRO,'
      '  CONTA_CONTABIL.DATA_EXCLUSAO,'
      '  CONTA_CONTABIL.DATA_AUTERACAO,'
      '  CONTA_CONTABIL.EXCLUIDO,'
      '  CONTA_CONTABIL.USUARIO_RECUPERACAO,'
      '  CONTA_CONTABIL.DATA_RECUPERACAO,'
      '  CONTA_CONTABIL.SITUACAO_DA_REPLICACAO,'
      '  CONTA_CONTABIL.CODIGOEMPRESA,'
      '  CONTA_CONTABIL.DATA_REPLICACAO,'
      '  CONTA_CONTABIL.USUARIO,'
      '  CONTA_CONTABIL.CCON_TIPO,'
      '  CONTA_CONTABIL.CCON_CODPAI,'
      '  CONTA_CONTABIL.CCONT_NIVEL'
      'FROM'
      '  CONTA_CONTABIL')
    Left = 80
    Top = 232
  end
  inherited dspCadastro: TDataSetProvider
    Left = 80
    Top = 264
  end
  inherited cdsCadastro: TClientDataSet
    FieldDefs = <
      item
        Name = 'CCON_CODIGO'
        DataType = ftInteger
      end
      item
        Name = 'CCON_COGIGOCONTABIL'
        DataType = ftString
        Size = 100
      end
      item
        Name = 'CCON_DESCRICAO'
        DataType = ftString
        Size = 50
      end
      item
        Name = 'CCON_NATUREZA_CONTA'
        Attributes = [faFixed]
        DataType = ftString
        Size = 1
      end
      item
        Name = 'CCON_APROP_CC'
        Attributes = [faFixed]
        DataType = ftString
        Size = 1
      end
      item
        Name = 'CCON_HISTPADRAO_DEB'
        DataType = ftInteger
      end
      item
        Name = 'CCON_HISTPADRAO_CRE'
        DataType = ftInteger
      end
      item
        Name = 'CCON_NATUREZA'
        Attributes = [faFixed]
        DataType = ftString
        Size = 2
      end
      item
        Name = 'CCON_IND_BALANCETE'
        Attributes = [faFixed]
        DataType = ftString
        Size = 1
      end
      item
        Name = 'CCON_CONTA_REFER'
        DataType = ftInteger
      end
      item
        Name = 'CCOR_CODIGO_CONTA_REFER'
        DataType = ftString
        Size = 40
      end
      item
        Name = 'CCON_LUCRO_VS_PREJU'
        Attributes = [faFixed]
        DataType = ftString
        Size = 1
      end
      item
        Name = 'CCON_CODCONTA_MAE'
        DataType = ftInteger
      end
      item
        Name = 'USUARIO_CADASTRO'
        DataType = ftString
        Size = 20
      end
      item
        Name = 'USUARIO_AUTERACAO'
        DataType = ftString
        Size = 20
      end
      item
        Name = 'USUARIO_EXCLUSAO'
        DataType = ftString
        Size = 20
      end
      item
        Name = 'DATA_CADASTRO'
        DataType = ftDateTime
      end
      item
        Name = 'DATA_EXCLUSAO'
        DataType = ftDateTime
      end
      item
        Name = 'DATA_AUTERACAO'
        DataType = ftDateTime
      end
      item
        Name = 'EXCLUIDO'
        Attributes = [faFixed]
        DataType = ftString
        Size = 1
      end
      item
        Name = 'USUARIO_RECUPERACAO'
        DataType = ftString
        Size = 20
      end
      item
        Name = 'DATA_RECUPERACAO'
        DataType = ftDateTime
      end
      item
        Name = 'SITUACAO_DA_REPLICACAO'
        Attributes = [faFixed]
        DataType = ftString
        Size = 1
      end
      item
        Name = 'CODIGOEMPRESA'
        DataType = ftInteger
      end
      item
        Name = 'DATA_REPLICACAO'
        DataType = ftDateTime
      end
      item
        Name = 'USUARIO'
        DataType = ftString
        Size = 10
      end
      item
        Name = 'CCON_TIPO'
        Attributes = [faFixed]
        DataType = ftString
        Size = 1
      end
      item
        Name = 'CCON_CODPAI'
        DataType = ftInteger
      end
      item
        Name = 'CCONT_NIVEL'
        DataType = ftInteger
      end>
    StoreDefs = True
    object cdsCadastroCCON_CODIGO: TIntegerField
      Alignment = taCenter
      DisplayLabel = 'C'#243'digo'
      FieldName = 'CCON_CODIGO'
    end
    object cdsCadastroCCON_COGIGOCONTABIL: TStringField
      DisplayLabel = 'C'#243'digo Cont'#225'bil'
      FieldName = 'CCON_COGIGOCONTABIL'
      Size = 100
    end
    object cdsCadastroCCON_DESCRICAO: TStringField
      DisplayLabel = 'Descri'#231#227'o'
      DisplayWidth = 50
      FieldName = 'CCON_DESCRICAO'
      Size = 50
    end
    object cdsCadastroCCON_NATUREZA_CONTA: TStringField
      DisplayLabel = 'Natureza'
      FieldName = 'CCON_NATUREZA_CONTA'
      FixedChar = True
      Size = 1
    end
    object cdsCadastroCCON_APROP_CC: TStringField
      FieldName = 'CCON_APROP_CC'
      FixedChar = True
      Size = 1
    end
    object cdsCadastroCCON_HISTPADRAO_DEB: TIntegerField
      FieldName = 'CCON_HISTPADRAO_DEB'
    end
    object cdsCadastroCCON_HISTPADRAO_CRE: TIntegerField
      FieldName = 'CCON_HISTPADRAO_CRE'
    end
    object cdsCadastroCCON_NATUREZA: TStringField
      FieldName = 'CCON_NATUREZA'
      FixedChar = True
      Size = 2
    end
    object cdsCadastroCCON_IND_BALANCETE: TStringField
      FieldName = 'CCON_IND_BALANCETE'
      FixedChar = True
      Size = 1
    end
    object cdsCadastroCCON_CONTA_REFER: TIntegerField
      FieldName = 'CCON_CONTA_REFER'
    end
    object cdsCadastroCCON_LUCRO_VS_PREJU: TStringField
      FieldName = 'CCON_LUCRO_VS_PREJU'
      FixedChar = True
      Size = 1
    end
    object cdsCadastroCCON_CODCONTA_MAE: TIntegerField
      FieldName = 'CCON_CODCONTA_MAE'
    end
    object cdsCadastroUSUARIO_CADASTRO: TStringField
      FieldName = 'USUARIO_CADASTRO'
    end
    object cdsCadastroUSUARIO_AUTERACAO: TStringField
      FieldName = 'USUARIO_AUTERACAO'
    end
    object cdsCadastroUSUARIO_EXCLUSAO: TStringField
      FieldName = 'USUARIO_EXCLUSAO'
    end
    object cdsCadastroDATA_CADASTRO: TDateTimeField
      FieldName = 'DATA_CADASTRO'
    end
    object cdsCadastroDATA_EXCLUSAO: TDateTimeField
      FieldName = 'DATA_EXCLUSAO'
    end
    object cdsCadastroDATA_AUTERACAO: TDateTimeField
      FieldName = 'DATA_AUTERACAO'
    end
    object cdsCadastroEXCLUIDO: TStringField
      FieldName = 'EXCLUIDO'
      FixedChar = True
      Size = 1
    end
    object cdsCadastroUSUARIO_RECUPERACAO: TStringField
      FieldName = 'USUARIO_RECUPERACAO'
    end
    object cdsCadastroDATA_RECUPERACAO: TDateTimeField
      FieldName = 'DATA_RECUPERACAO'
    end
    object cdsCadastroSITUACAO_DA_REPLICACAO: TStringField
      FieldName = 'SITUACAO_DA_REPLICACAO'
      FixedChar = True
      Size = 1
    end
    object cdsCadastroCODIGOEMPRESA: TIntegerField
      FieldName = 'CODIGOEMPRESA'
    end
    object cdsCadastroDATA_REPLICACAO: TDateTimeField
      FieldName = 'DATA_REPLICACAO'
    end
    object cdsCadastroUSUARIO: TStringField
      FieldName = 'USUARIO'
      Size = 10
    end
    object cdsCadastroCCON_TIPO: TStringField
      FieldName = 'CCON_TIPO'
      FixedChar = True
      Size = 1
    end
    object cdsCadastroCCON_CODPAI: TIntegerField
      FieldName = 'CCON_CODPAI'
    end
    object cdsCadastroCCONT_NIVEL: TIntegerField
      FieldName = 'CCONT_NIVEL'
    end
    object cdsCadastroCCOR_CODIGO_CONTA_REFER: TStringField
      FieldName = 'CCOR_CODIGO_CONTA_REFER'
      ProviderFlags = []
      Size = 40
    end
  end
  inherited dsCamposPesquisa: TDataSource
    Left = 220
    Top = 250
  end
  object dsContaReferencial: TDataSource
    DataSet = DMContabilidade.cdsContaContabilReferencial
    Left = 220
    Top = 283
  end
  object dsHistoricoDebito: TDataSource
    DataSet = DMContabilidade.cdsHistoricoContabil
    Left = 220
    Top = 219
  end
  object dsHistoricoCredito: TDataSource
    DataSet = DMContabilidade.cdsHistoricoContabil
    Left = 220
    Top = 219
  end
end
